repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Solving 10385 - Duathlon (Ternary search)
[andmenj-acm.git]
/
272 - TeX Quotes
/
272.c
blob
d055cef97e74559ecdaa6761d969d846a860ff31
1
#include <stdio.h>
2
3
int
main
(){
4
char
c
;
5
short
b
=
1
;
6
while
((
c
=
getchar
()) !=
EOF
){
7
if
(
c
==
'"'
){
8
printf
(
b
?
"``"
:
"''"
);
9
b
= !
b
;
10
}
else
11
putchar
(
c
);
12
}
13
return
0
;
14
}